﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Campus;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Campus.Entities
{
    [Table("Users")]
    public class User
    {
        
        public int UserId { get; set; }

        

        [Display(Name = "Usuario / Mail")]        
        [Required(ErrorMessage = "El {0} es requerido")]
        [DataType(DataType.EmailAddress)]
        [EmailAttribute(ErrorMessage="Ingrese un mail valido")]
        public string UserName { get; set; }
        
        [DisplayName("Contraseña")]
        [Required(ErrorMessage = "La {0} es requerida")]
        public string Password { get; set; }

        
        public string Rol { get; set; }

        public bool Confirmado { get; set; }

        public string UsuarioEncriptado { get; set; }

        public virtual Responsable Responsable { get; set; }

        public DateTime? FechaCreacion { get; set; }

        public bool? CreadoPorAdministrador { get; set; }
                
    }
}
